package com.jar.exercise.设计模式.工厂.抽象工厂.factory;

import com.jar.exercise.设计模式.工厂.抽象工厂.pojo.MacKeyboard;
import com.jar.exercise.设计模式.工厂.抽象工厂.pojo.MacMonitor;
import com.jar.exercise.设计模式.工厂.抽象工厂.pojo.MacMouse;
import com.jar.exercise.设计模式.工厂.抽象工厂.pojo.abs.Product;

public class MacFactory implements ProductFactory {
    @Override
    public Product createKeyboard() {
        return new MacKeyboard();
    }

    @Override
    public Product createMouse() {
        return new MacMouse();
    }

    @Override
    public Product createMonitor() {
        return new MacMonitor();
    }
}
